<?php

require_once('inc.config.php');
$rid = $_GET["rid"];

if(!isset($rid)){
	header("Location:agent_admin_rhlist.php");
	exit;
}

$aid = $myHouse->getPublisherIdByHid($rid, 1);

if(__login__==0 || $aid!=__user_id__){
	header("Location:index.php");
	exit;
}

$useTemplate   = 'agent_admin_rhedit.html';

$page = new QuickSkin ($useTemplate);

template_ini($page);

$rinfo = $myHouse->getRhouseInfo($rid);

$style = explode("/" , $rinfo["style"]);
$rinfo["style1"] = $style[0];
$rinfo["style2"] = $style[1];
$rinfo["style3"] = $style[2];

$floor = explode("/" , $rinfo["floor"]);
$rinfo["floor1"] = $floor[0];
$rinfo["floor2"] = $floor[1];




$page->assign($rinfo);

require_once("agent_admin_left.php");

$page->output();


ob_end_flush();

?>
